Use an inline cache when accessing Application.injector

Improves application performance by about 5% in some benchmarks.