[`menu_local_tasks`](https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_local_tasks/7) smells of the same. Is that not usable?

Also I would think adding the argument to the static cache would be appropriate as the method could be called multiple times with different arguments.