Adding flag to check if the persistence engine has been initialized.