Optimize monitoring stack performance