improved multithreaded create_and_scan