XWIKI-8845 : Improve UI extensions performance