Cache improvement in category tree