Stopped trying to use custom memory management.
It was actually slower in most cases and much less reliable.
Logging rework