PERF: perf improvments in indexing with object dtypes (GH5968)

closes #5968

```
-------------------------------------------------------------------------------
Test name                                    | head[ms] | base[ms] |  ratio   |
-------------------------------------------------------------------------------
frame_iloc_big                               |   0.2836 |   2.8454 |   0.0997 |
```