Hi, There are several posts with similar questions:
This is known in python programming. We would suggest write a custom plugin in C instead of using numpy array.