Speed up the execute loop with type declarations.