optimizing remote repo