performance update in FGA shared key calculation