Updated cache class with initial version of read