Optimized storing chunked files