Avoid n+1 queries.