If you go that far to write your own read write methods to serialize data to store and to retrieve your data and de-serialize it, why not just stick with KeyValueStore2? I do agree though that if writing is not needed, a class, declared globally, should suffice.