Only init application index at most once per JVM.