optimize labels rendering