Simplify code: use dispatch_get_specific/dispatch_set_specific