make inbox use less queries