Saw a design with battery / super capacitor and light sensor to deal with that. On light detect, kill power to volitile RAM and or wipe non volatile storage.
Cat n mouse game level up! Now it has to be done in the dark, or using a light wavelength invisible to the sensor.