Better solution to reading from unused memory