Added hash bit dependent XOR folding mask