Move (almost) all the functions (like store, load_name) to the bodies in the switch.

Which removes the need for a call every time.