This is Realpolitik:
... more distance from Tel Aviv and Riyadh, and an open channel of communication between Washington and Tehran would maximize U.S. influence and leverage over time. It's also a useful hedge against unpredictable events: when you become too strongly committed to any particular ally (as the U.S. was once committed to the Shah of Iran), you suffer more damage if anything happens to them.
Because the United States is not a Middle Eastern power -- a geographic reality we sometimes forget -- and because its primary goal is the preservation of a regional balance of power, it has the luxury of playing "hard to get." That's why it's not such a bad thing if our present regional allies are a bit miffed at U.S. these days. Remember: they are weaker than the United States is and they face more urgent threats than we do. And if they want to keep getting U.S. protection and support and they are concerned that our attention might be waning a wee bit, they might start doing more to keep U.S. happy.