Simplify hash iteration