Cache layer done.
Cache files are now stored in seperate folder for easier cleaning.