Reduce cpu ram usage