Hashes can sometimes be cached, if there is adequate space in the data composition where The true secret is saved; caching the result of comparisons (a binary operation) is commonly impractical. On the flip side, comparisons can benefit from shortcutting: if keys typically differ within the first few bytes, a damaging comparison can be very quickly