optimized pallette size