Optimization of the stimulated Raman scattering threshold