fix(?) a huge concurrency issue

(why the fuck did i think having any sort of global state in a
compression routine was a good idea?)