Optimize checker pattern