Optimize api Eating lot of heap

Hi team,
We are running optimize api everyday to optimize the daily indices . After running optimize api once in a day for 30 days , we saw a sharp rise in heap usage . Now we stopped using this API , usage of heap is drastically reduced . Can you please let us know if heap usage is expected to rise with the Use of Optimize api?