Spray foam is an option, but there are a couple of important precautions that must be observed. The 2" air gap above the mat must be maintained under all conditions, and the total R-value of the foam cannot exceed R-19. Also, the foam cannot be in direct contact with the mat, so some sort of barrier will be needed to separate the two.