A bunch of little speedups