optimize sets of compound primary keys in where clause to multi gets