What kind of foam?
There are several, all different.
Open cell (soft cheap squishy) is a sponge & can soak up water vapor & crumble form Ozone exposure.
Closed cell (Firmer, less bendy, like Yoga mats & sleeping pads for camping) is much better.
*hint, hint*
__________________
Allan Quatermain: “Automatic rifles. Who in God's name has automatic rifles”?
Elderly Hunter: “That's dashed unsporting. Probably Belgium.”