Hi,
I never tried to do that actually, so I am not sure if it's safe, but if you do get to the serialized level, it should work.
I don't think this is a good approach, when you want data of this sort, it's best to actually have a proper database, even a basic one, could be a simple xml, or json or text file, but changing data this way will make it potentially very difficult to debug should it not go as expected. It's better to separate data and logic for now.
Bye,
Jean