r23743: Simplify stat_cache_lookup() logic. For the history of this, see