> encoding/gob is intended for streams, not stateless marshals/unmarshals
I don't understand this within the context of the rest of your comment. I use gob for marshaling stuff to storage all the time, I'm not aware of a better way to do that (serialize data to binary).