this can probably be optimised down quite a lot.
device. Separated the mechanisms of non-volatile storage access and non-volatile stored options.