Feature #6601: Speed up link rendering by implementing some local caches