Reduce memory usage of trityper loader and added iterator to TextFile reader