Migrating directives table to hash table