trace: remove unneeded checks in internal API