Handle large files better