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

related #5968