Reduces key lookup in get_id() from O(log N) to O(1) average, and index load time from O(N log N) to O(N). Also lowers per-entry memory usage by eliminating the three tree-node pointers (parent/left/right). Co-authored-by: ZeFeng Yin <yinzefeng.yzf@alibaba-inc.com>