Implement auto-tune for N Factor coins

Calculate the max settings and set them if auto-tune is enabled.