I wasn't using encryption. I'm not sure how that callback works. It takes a stream and returns a stream. Is it the same stream it returns or a new stream?