Closed-cell polyurethane spray foam has some pretty awesome qualities. It has a high R-value. Its resistant to water, mold and insects. It expands into hard-to-reach nooks and crannies.