perf: Use precomputed keys with injector for performance reasons.

Closes #1081