Hardened memory handling