I just checked all of the places where `getTenant` and `getTenantByHost` are being used, and couldn't immediately find an place where the original object was being modified. I'm going to revert the changes in this file for now. However, I think the idea behind the changes is sound, but we probably need an accompanying performance test in a separate PR before we can comfortably merge them.