Major revamping of dependencies / memory layout representation. Performance should be much better. All tests passing