optimized slices to skip impossible solutions.