Optimize ResourceManager.loadLang()