Use drupal_static().
Merge pull request #1 from adam-vessey/7.x

Use drupal_static().