···4040 didPubkeyCache := make(map[string][]models.PublicKey)
41414242 for _, commit := range ndCommits {
4343+ // skip unsigned commits early: no signature means no DB lookup needed,
4444+ // and most commits in a typical log are unsigned.
4545+ if commit.PGPSignature == "" {
4646+ continue
4747+ }
4848+4349 committerEmail := commit.Committer.Email
4450 if did, exists := emailToDid[committerEmail]; exists {
4551 // check if we've already fetched public keys for this did