The emergence of memory in liquid crystals