Convex functions over the whole space locally satisfying fractional equations