1. A method to compress data, comprising: compressing data using a first algorithm to form compressed data; determining a compression ratio of the data with respect to the compressed data; determining if the compression ratio is greater than a compression threshold; and compressing the compressed data using a second algorithm if the compression ratio is greater than the compression threshold, wherein the second algorithm takes longer to compress data than the first algorithm, and wherein compressing data using a first algorithm comprises compressing data using a first algorithm that searches for repeats in the data stream which are greater than a first repeat threshold.