The memory of sand