1. A method for compression comprising performing, by a computer system: receiving a first input frame including a plurality of first literals each of length N bits; determining a plurality of first counts B i , i=0 to 2^N, each first count B i indicating a number of literals of the plurality of first literals of value i; generating one or more statistical values characterizing the plurality of first counts B i ; processing the one or more statistical values to obtain a first result; determining that the first result does not meet a threshold condition; and refraining from compressing the first input frame in response to determining that the first result does not meet the threshold condition.