Reduce reading even further by making a local copy if we get a hit.

This produces some completely bogus "warning: 'MEM[]' may be used uninitialized" warnings
that I don't know how to get rid of right now.