Update hook is slow; runs once per ref pushed

We noticed in a customer ticket (ZD: https://gitlab.zendesk.com/agent/tickets/82084) that if you push a new repo with 2000 new refs, git-receive-pack runs the update hook 2000 times, which reads config.yml repeatedly and checks for custom hooks when there are none.