I've added a cache that doesn't cache the rendered icons but instead caches the compiled Velocity script with special cases for commonly used Velocity scripts that avoid all context switching and execute basically instantly. That way, we don't need to cache much but still have a large performance impact.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.