We should check that the encrypted value using the CloudFormation formatter does not exceed 4096 bytes causing an runtime error.
Another solution: Splitting the value into multiple parameters of the maximum size (recommended by CloudFormation) and envsec handling the join transparently.