Proactive control of maintenance costs