Flatten internal kvs map