Test anything you have to see if it works if you want to keep costs down, otherwise there are things like 3M Super 74 and contact adhesives for foam.
They are quite malleable, but you can change the properties by compressing them too much. Gas/air needs to move through the material to be...