Issue #15 : basic implementation of caching to file