I had simillar problem long time ago 
and moved to MapDB all my item that should be restored after startup.
Actually I use two persistence services:
- Influx DB for all items with historical data
- MapDB for all items that should be restored after startup
Maybe it is not related but may help someone.