Make the static arrays have exactly the right size