Performance improvements and cleanup

This commit brings much smoother RPM IO and calcs.