zlib: separate sync/async methods