Optimizing creation of changeset dictionaries using sharedKeySet's