Performance enhancements for changing language.