Use an inline cache when accessing Application.injector

Improves application performance by 3-5% in some benchmarks.