you dont need to keep batchStream, compressedStream, etc around anymore - only need deserializeStream.
avoiding code duplication here was to ensure that all relevant changes (made now and in future) apply to all relevant uses.