Introduce index tree to optimize children lookups