datastore: refactor privatizing of Key values.
datastore: update regression tests.
Merge pull request #190 from stephenplusplus/private-key

datastore: refactor privatizing of Key values.