Efficient allocation of a multi-purpose sample