Add no_invalidation context manager and decorator