UsersController#show SQL timings increased with 10.6.0-rc6

It looks like SQL timings for UsersController#show have increased with the RC6 deploy:

Screenshot_from_2018-03-20_17-07-05

Taken from Grafana.

Changes included a fix for https://gitlab.com/gitlab-org/gitlab-ce/issues/40525 see https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17454 (maybe other changes as well).