Avoid clearing buffer if not strictly necessary