improve preloading of associations in API response