Cash management and working capital optimization