Optimize tree leaf rendering