Updated cache read/write functions.