chunk-wise compression