encrypted history: class constructor: refacroring
Fixes