Static initializer: Set initialized flag early to avoid infinite recursion. Note: this will need lock/rewrite to handle proper multithreading.