Made access function for cache, made cache private