Bug 15108 optimize set search but there's the same issue in: ./misc/migration_tools/build_oai_sets.pl