At most two threads can use this class. Currently it is safe.