OK this is reverted now,
https://github.com/discourse/discourse/pull/31119
Let me know if the commit restores performance.