Revert "Implemented cache writting"

This reverts commit f94c74d17be8ffdcb534818f9399ba67c64e2905.
Removed warnings