Caching of values implemented.