foam block under intake

can anyone provide info on the reason for the foam block under the intake on the 5.7 hemi and if i change to a 6.1 intake should i remove the foam or leave in there