Clean log tabales and so on for the optimization