Fixed slow loading of text files