Compress based on block.