Build up a list of excluded primary keys instead of calling qs.exclude for each key