memory foam
noun
a dense polyurethane foam that is sensitive to pressure and temperature and assumes the contours of what is placed on it, while conforming closely and without springing back immediately after the weight is removed, as if retaining a memory of it: used especially in pillows, mattresses, and mattress toppers.