BooleanMinimize might do what you want.
BooleanMinimize
Many thanks for your suggestion Daniel, will try it!