Added method to improve the preallocate operation
Using the static preallocation