Optimized palette persistence fix to prevent rerendering tiles more than once