Optimize json endpoint speed with some eager loading