Optimize the Local Repository