Preload command names

By precalculating command names to the relevant command object, scripts
theoretically run faster.