Refactor create_data_arrays method and rename rename local_result_array