Using class variables is by nature shared between threads. Meaning this causes problems for all threaded web servers, such as https://github.com/puma/puma - One of the most popular Rails web servers.
https://github.com/queueit/KnownUser.V3.RubyOnRails/blob/master/lib/queueit_knownuserv3/httpcontext_provider.rb#L77-L91