I'd probably initialise in d_init, but keeping the StringTable static, eg:  add_d_attribute("foo");

But will leave it up to you.