minor optimizations to speed up rendering on mobile devices