Memory-Augmenting Decoder-Only Language Models through Encoders