use ActiveSupport::PerThreadRegistry