generateMissingEcFiles was os.Stat'ing each shard a second time just to read the size after findShardFile already had it. Return the size directly so the inner loop is one Stat per shard instead of two.