Improving performance when using large files