Enhance performance. Ram usage reduced from 6 GB to ~1.2 GB