Improves performance by refactoring SC.View's layerId caching to remove an  closure.