A general smoothing inequality for disordered polymers