using miniz lib to simulate encryption that descreased resource size (decryption increases number of output bytes)