use ssl_asn1_table_keyfmt() function and only format each (rsa,dsa) lookup key once, rather than twice.