improved performance by caching ratings