On the use of spectral methods for the numerical solution of stiff problems