Fixed N+1 problem while fetching all owner names of namespaces