I think I'd prefer to just create some golden base64/hex gzip files than generate them on the fly. With this we're really hacking GzipOutputStream in a way that isn't too natural.