1. A pre-computation based ternary content addressable memory (TCAM), comprising: a counter configured to generate a count of a number of ones or zeros in a search word; a primary TCAM configured to store a data word; and a secondary TCAM configured to store a pre-computation word representing a range inclusive of a lower and upper bound of a number of ones or zeros possible in the data word, wherein the secondary TCAM is configured to disable pre-charging of a match line associated with the data word if the count of the number of ones or zeroes in the search word does not fall within the range represented by the pre-computation word.