A more gas efficient earnings calculation approach

I updated the OP to address this - see the section on “Cumulative Rewards and Fees for Orchestrators”.