chunkwise compression