Optimizing cache energy efficiency in multicore power system simulations