Added support for custom cache dir per instance