secret keys functionality