Optimize this Python code for finding the maximum value in an array.
def find_max(arr):
    max_value = 0
    for x in arr:
        if x > max_value:
            max_value = x
    return max_value
def find_max(arr): 
    return max(arr)