Better solution for reading stuff from a memory block.