A tunable cache for approximate computing