Optimize chaos metric calculation and remove recent palette