[server] Cache full directory tree at startup