reduced memory footprint by roughly a factor of 4, needs 10% more CPU though