Only dereference mMemory once.