Local optimization breaks global outcomes