implemented in-memory-cache in order to speed up performance of directory listing