Optimize overlay performance