Multiple threads can now iterate over dynamicResources at the same time and make overlapping calls to DynamicSecurityResource .clearCache, so you should check this method to see if this is ok.