Class method and dispatch_once for write_queue