Convert sys module to static allocation

Wasn't tested on stm hardware.