Use @wraps in cache decorator.