RBTrees to KV storage.