Fix cache race

@dkubb The commit message containing this change explains it. On `2.1` instances of `Bignum` are frozen by default.