Remove ridiculously excessive array sizes in many places.