preallocate array at load time