read-cache: avoid allocating every ondisk entry when writing