This is probably a native question, but: could this sort of attack be prevented by having the physical values be trivially encrypted version of the logical values? I’m thinking something as simple as:
$value XOR f(memory address, random number etched onto chip)