[perf] Improve loading and calculating.