Use HTML::Mason caching to avoid repeated computation.