I have to disappoint you: the molecular substrate of memory is still not precisely known. Moreover, there is no certainty about the location of this substrate: whether it is part of the synapse, i.e. places of chemical transmission of nerve impulses between neurons, or lies extrasynaptically, for example, in the soma (body) of a nerve cell.