Improve rendering performance