cache key s2k type in database, for later use