Optimizations for big files.

Do not need to store the whole file in memory.