New research shows that childhood environments shape lifelong memory through a single molecular switch that controls learning-related gene activity. In animal models, enriched early experiences activated this switch, strengthening neural circuits involved in memory and cognition, while deprived environments suppressed it.