Use ANY VALUES instead of ID IN() to speed up Postgres

Another optimization for large ID IN queries.. plz review @ericnewcomer 
I actually want a set(), not a list so we can do fast lookups.