Optimize directory rights