I'm back, a partial rewrite of the algorithm solves all the memory issues and makes it more that 3 times faster.
I computed managem 256spec with 30c amps.
Hurray!