Keep pointers to actions instead of looking them up every time.