I didn't care too much because owned_domains is cached, but yeah I can avoid doing map inside the loop.