That’s a nice idea but it works for simple objects, as the more complex are the object the more overhead you’ll get.
but its a good idea to keep in mind