Don't hunt for outer frame index if it's cached.

This was, curiously enough, one of the biggest time sinks in the
entire assembly of large things like CORE.setting.