if cumulative values are stored to the persistence store it would mean that there is an item for each cumulated value. Such values will be automatically restored by configuring the restoreOnStartup strategy (see https://github.com/openhab/openhab/wiki/Persistence) for them. Could that be the missing part of the puzzle?