Performance improvement, gets rid of 6 object allocations per time step