Quite a few studies have indicated that "memory" is retained by genes and is then passed on to their offspring. Here’s a few thoughts from an article published in the journal Science. They worked with genetic switches:
Epigenetics concerns the inheritance of gene expression through the passing on of DNA. A chemical tag, known as an epigenetic mark, is attached to DNA that subsequently tells a cell to use or ignore a particular gene. The most common of these marks is known as a methyl group, an alkyl derived from methane. When it binds itself to DNA, by a process called methylation, it prevents protein from being added to the gene, and as a result, turns it off. Epigenetic marks are usually erased between each generation due to the way in which primordial gene cells (PGCs, precursors to sperm and eggs) restructure the genetic information ready for the next generation.
The Cambridge study, led by Jamie Hackett, discovered how the methylation marks were erased by the PGCs, resetting them for the next generation. As the PGCs divided, they broke down the methylation marks and diluted them with each divide. The study claims that such an understanding of epigenetic resetting "could be exploited to deal with adult diseases linked with an accumulation of aberrant epigenetic marks, such as cancers, or in 'rejuvenating' aged cells."
This is important because aberrant methylation could accumulate at genes during a lifetime in response to environmental factors, such as chemical exposure or nutrition, and can cause abnormal use of genes, leading to disease. If these marks are then inherited by offspring, their genes could also be affected.