Implementing rate caching.