Implemented cached directory and version increment.
Fixes