Add perpetual code

@mortenvp @janusheide I will try to update this branch with the master. We should release perpetual NC soon.
If you expect the buffer to be zero initialized be explicit:
```
std::vector<uint8_t> buffer(stack.symbols(), 0U);
```