leaching time optimization