FIX: Memory issue in stc generator
performance warning
Merge pull request #913 from mluessi/fix_stc_mem

FIX: Memory issue in stc generator