Loop CategoryTree optimisation

For a big catalogue (4 000 categories), without it takes about 85 000ms
to have the "product-edit" or "category-edit" pages.
With this optimisation we fall about 14 000ms