Persist client sessions in HiveMQ Edge

Is there a way to enable local persistence of client sessions and topics instead of using the in-memory database? We have a need to maintain this information across reboots. Could this be done via Extensions? Or porting code from community edition?