Optimized branching on cmpHash function