Some tweaks and a cache for the app and user dirs
Some more improvements