Remove compress_flag and replace it by a control on compress_len