MDL-41944 block_onlines_users: Improve performance