Caching the Template in ScriptContent.renderTemplate yields a >99% speedup for repeatedly used templates.
Merge pull request #94 from jglick/ScriptContent-renderTemplate-perf

ScriptContent caching