Adding some piece of codes, directory don't take several secondes to be serialized anymore