Added caching for large files by splitting in 1 MB chunks