Interface to storing and retrieving tokens