Use drupal_static().