Initial key value store code