Optimizing Medical Maintenance Programs Cost Effectively