Optimize render class