More work to optimize boolean operators.