Converted KaeyValueStore as a template