perf(view factory): Compute DI Keys ahead of time

4% improvement in TreeComponent benchmark

For #1081