Improvements on compressing large message