An Efficient and Cloud Based Architecture for Smart Grid Security