Feature cacheword updates

integrates latest cacheword, sqlcipher updates and some small related fixes.