Performance improvement on redirect count test