Added first draft of file based cache. Incomplete.