Much faster scanning of directories