Use of memory effects in nematic liquid crystals