Miniature Cache Simulations for Modeling and Optimization