Improving "in" functionality for arrays in where clauses