Rely on ReadInterface contract for getSize().

The return type in the cache impl was fixed recently, therefore we can rely on the contract