Add an optional write cache to OFStream.