Key download and PK storage