A variant of make_keys() which creates keys for the requested shard. As this version is more generic than the existing local_shards_only variant, the former is reimplemented on top of the latter.