Avoid calling SiteStore::getSites to boost performance

Change-Id: I77aab6e9fd3a301d293942c6393979df2160eaf6
(cherry picked from commit cb15f4453f34136760a0b9d7dff07dfd4463be19)