Improved Handling of Kramers Kronig Transform