Various Optimizations & Threading Preparations