Try to simplify the repeated code that checks if the storage item is present in the cache and retrieve it from the RPC as we discussed [here](https://github.com/paritytech/foundry-polkadot/pull/392#discussion_r2537325171)