Optimized Glacier upload to minimize the amount of wasted blob space when recovering from transient failures