Eliminate N+1 queries referencing issues
To load issue 1, we see that in #38033 (closed) that about 835 ms of the SQL queries were due to loading ProjectFeature. We should be able to cut this down by eagerly loading this information.
Closes #38033 (closed)