Avoid costly NOT IN filter on an empty list