Using kind restricting in cipher modes and stages fixes #97