Avoiding querying PK by array