Standard and optimized carry trades