Removed multiple scanning of the same prefixes