Improvements in Cpu usage andram usage