Does the torch have a very small current flow (parasitic) when the torch is switched off ?
Normally when the batteries are removed it is just the same as when the torch is switched OFF ; there is no current flow.
Without exception , all my torches with memory still retain the "last setting" after changing the batteries.
People would soon get fed up if they had to reset everything every time they changed the batteries.
.
Some lights have a vary small current when turned off. Mostly those with the electronic in the tailcap like solarforce skline I..
In Lights with a "real" on/off twisty/clicky there can´t be any current in the off-position.
But you do not have to reprogramm it after switching it off or batterychange.. These lights use a microcontroller like tinyavr. The controller has a builtin storage(eeprom) that can store data for many years without a power source(just like a usbstick).