if you,had a script that added that variable to all objects of your crate class, then they would all either stay put or be deleted. if you are only losing some, then there is another factor.
are you SURE they are all being spawned to begin with? add a diag_log line to your code to output to the log when and where each is spawned, or perhaps create a map marker.