Small speed improvement for larger repositories