Set preloadindex=true in git repo to speed up some operations

Fixes #594