I have found a solution (one of the possible ones), it's using openssl:
$ openssl zlib -d < /tmp/data
...
or
$ openssl zlib -d -in /tmp/data
*NOTE: zlib functionality is apparently available in recent openssl versions >=1.0.0 (OpenSSL has to be configured/built with zlib or zlib-dynamic option, the latter is default)