Moves engine creation outside stats to enable connection pooling.