input: Write a function to optimize the below Python code. The function should use a list comprehension to filter elements greater than 2 from the given list. If the input list is empty, the function should return an empty list.
  
  def optimize_list_filter(data):
      return [x for x in data if x > 2]
  
  assert optimize_list_filter([1, 2, 3, 4])==[3, 4]
  assert optimize_list_filter([1, 2])==[]
  assert optimize_list_filter([])==[]
  assert optimize_list_filter([3, 4, 5, 6])==[3, 4, 5, 6]
  assert optimize_list_filter([-1, -2, 0, 1, 2, 3])==[3]
output: def optimize_list_filter(data):
      return [x for x in data if x > 2]