Fixing number of threads used during affine transform optimization
Increasing the amount of memeory for 2d affine transformation optimization