Removing N+1 queries in admin grids