Compress only compressible payloads. Closes #1828