Is the local-storage section a "best practice" place to define all of your method variables? For example:
method-id Encrypt.
local-storage section.
01 clearBytes binary-char unsigned occurs any.
01 pdb type Rfc2898DeriveBytes.
01 nb binary-char unsigned occurs 13.
01 ms type MemoryStream value new MemoryStream.
01 cs type CryptoStream.
01 num binary-short.
01 str type StringBuilder value new StringBuilder.