Some pretty advanced caching.