[TextEditor] Speed up text file loading.