Allocate all PNS-related memory statically. Partial commit, loading is broken
and unit tests are not up-to-date.