First implementation of cache, untested.