Tweaked ObjectStream for fast network transfer.