This version assumes keys are available locally, and aquires them with getKeys