Muscle memory is a central nervous system process that relates to your ability to more easily activate relevant motor units. The only way this would affect your muscle mass is in your ability to generate stronger contractions. This may help you regain lost muscle mass because you can train more efficiently (by activating more fibers in training), but muscles do not "remember" how to be big. Only training hard and eating a lot will return lost mass.