Use SC index from object header when available.

Falls back to the linear search for cases that don't (yet) have the
index stashed. However, it is in the common cases, which makes the
CORE.setting compilation complete in 90% of the time it used to.