Iterator search optimization