Given an array of integers, perform a series of transformations and return the optimized result using a greedy approach.
For this task, one transformation increments a single element by 1. Return the strictly increasing array requiring the fewest total increments, preserving the original order.
Implement def optimize_array(nums):, where nums is a list of integers and the result is a new list of integers.
def optimize_array(nums):