Multi-stage schemes for the Euler and Navier-Stokes equations with optimal smoothing