Fixed issue where keys that are different lengths but share starting bytes
can be considered matches.