Small optimization for GlobalAssemblyCacheService.