MODULES:REDCAP: Restructured to reduce heap overhead.