Maybe without too much effort, this could be generalized for when all keys across all slots are single keys? Then you wouldn't use this util method (you wouldn't need it), and instead you'd return your list of salt bytes.