Sealed doors. Calculate the time needed to open/close a door, and (a) have an airtight door on the end, and (b) another airtight door sufficiently far back enough that it can snap closed BEHIND the speeding "train". Thus, you only have to re-vacuum the "final compartment."