When truncating, just free ALL memory.
Remove unused clear_used_inputs( ) and clear_used_inputs_for_reg( ).
Also shrink excess RAM linked to computations that are in use.