[Refactor] Added cache() for tuning