Double Memory Foam Mattress Memory foam is a favorite material for mattresses because it molds to your body as heat warms it. This effect of cocooning means that the mattress envelops you and provides the feeling of hugging when you lie down. However, there are a few things to think