speed up scanning of libraries