- Use of a single write operation for the cache file instead of multiple appends. API change.
- Added more functions to check the values.