Decoding the dialog between genes and synapses during memory storage