Cleanup - calculate paddind just once