Avoid repeated calculations of DbToRatio(GetRxGain()) by caching the result in a variable.
DbToRatio(GetRxGain())