XWIKI-11116: Accessing velocity engine is way slower than it should
* still slow but a lot less often

(cherry picked from commit f10af3c640d9150c684b00d670c71ac7a8e6ea3a)