You could try spray foam insulation as it can be injected or sprayed on. It is a 2 component foam with a closed cell structure, which makes it impervious to moisture (unlike the single component aerosol cans of foam). It also hardens, expands and cures within a maximum of 3 to 5 minutes...