configurable monomorphization to reduce search space