LRU-cached mathjax rendering