I would be wary of anything that "foams" If at any time the bubbles formed burst they are going to trap water and I am sure that could spell trouble in the future. Something sticky, waterproof, thick and flexible seems to be required that's why I asked about non silicone type butyl style mastic.