Blockchain is a reliable ledger database that may be used to store various private healthcare data, but uploading and sharing data is difficult due to privacy concerns. Hence, to overcome these issues, a novel HCCLO with master Birch‐Brown Paruvala‐SLSTM model has been proposed to store various patients' medical data and shield it from threats. Hyper Contour Cryptography with Lepidoptera Optimization (HCCLO) has been proposed in this model, which encrypts data to reduce unwanted time stamp creation and prevent private key theft. Also, the Master Birch‐Brown‐Parulava NN design is introduced to prevent a false identity that leads to a data breach, and it allows for private exchange and enhances framework reconciliation, acting as an immune response to information breaks in the chain and preventing data breaches from spreading further. Then, the SLSTM layer implant RF Classifier is introduced to categorize data as user requests and attacks, safeguarding the blocks against changeability caused by malware attacks. The proposed approach offers minimal block mine time, maximum accuracy, and healthcare data security.