Add preallocation to spike loading