Use the new PiwikCache::getTransientCache() to store the values instead of using the static array - these are called 50 K times or more when only 100 websites when rendering a scheduled report
Merge pull request #6867 from piwik/use_transientcache_once

Use transientcache once