reduce memory and cpu usage for LKLanguage