Instead of at init.
It allows taking into account the cache control (but at the expense of using a bit more memory) and fix things like XWIKI-21494.