Optimize EF Core Queries