Why do you want to avoid serialization? It honestly will probably make your life a lot easier.

But I think you're overcomplicating how you're thinking about it. Just write the values out in a...