Optimize resetting opacity