Download 5K lines at a time to save server memory.