Better handling of large text files