If you have physical access to the device, aren't all bets off anyways?
Even attackers that can read your RAM perfectly can be thwarted by encrypting things and unloading the keys from memory.
In practice, If you can detect intrusion and the device has a secure boot system, wipe the device and issue it new keys, re-encrypt all data to the new keys with some backup cold-stored keys.