Improve palette lifetime
Improve palette