Checkbox optimization