Propose a solution that optimizes the following python program.
for i in range(1000):
    for j in range(1000):
        arr[i][j] += 5
import numpy as np

arr = np.array(arr)  # Convert to a numpy array

arr += 5  # add 5 to the array