Terms: remove doc -> term dict as it is super slow