PERF: better perf on min/max on indices not containing NaT for DatetimeIndex/PeriodIndex