Fix caching functionality and explain it better in the README.