cache a set of memorystreams instead of making a new one everytime
every serialize of a replication message was causing 5 internal array
copies + byte array allocations. There are better ways of doing this
but this will take most of the load off. This change should be revisited
as its a hot path