Gradient check efficiency