It has to stay constant as we get the blockchain lock for the entire function. Avoids some unnecessary DB accesses.