Performance improvement by not creating new array every time.