Move more KDF logic into deriveKeys. Remove printing of KDF params.