Cache rendered results.

Resolves #1.