Reduce number of progress callbacks for large files