This isn't ok, I think. This function gets called at load time, and the query for this takes something like 20 seconds on prod according to Dan.