Trace anomaly and infrared cutoffs