gpgscm: Optimize symbol lookups and insertions.