Performance of history writes was very poor even with the code rewritten to accommodate the environment concept (see db_abstraction branch)