An Optimization-Linked Intelligent Security Algorithm for Smart Healthcare Organizations