Improving the Performance of an Ultrashort Soft X-ray Free-Electron Laser via Attosecond Afterburners