Caching and whatnot implementation.