Removed cache write and read functions