Using cache where needed