memset right size
handle creation of DIR caches