Prevent excessive garbage collection by caching fromHtml