repository optimization