Move globals to Compress class, to do CUDA initialization only once. enableCUDA is broken, will be fixed later tonight.