Harden shader cache against memory corruption