[Ide] GetCacheDirectory has now a more fine grained locking strategy &
only touches the cache on first access.