EE-Grad: Exploration and Exploitation for Cost-Efficient Mini-Batch SGD