Finish caching API
Fix caching mixin. Add base encode/init.