An Efficient Cloud based Architecture to Improve Smart Grid Performance