Improve performance of `mark_expired_users_as_inactive` background job.