Performance optim for simulation 10x