Only query required sets.