keys: Converted to async functionality