New research shows that childhood environments shape lifelong memory through a single molecular switch that controls learning-related gene activity.