changed dynamic to static mem in key value store src file