Various optimizations to get the real time down by about 25%. Your mileage may vary.