UPS's generally have very stable outputs, any ripple or noise caused by line switching would usually be taken care of by the input filters to your switching supply. Make sure the load you present to your switching supply is greater than the minimum required at all times.