extract read interface to common class in persistent and transientmap