YML framework is a well-adapted advanced tool to support designing and executing portable parallel applications over large scale peer to peer and grid middlewares. This work studies the problem of ensuring data security of the YML framework. We define and construct a mechanism that enables us to move the data repository to a public cloud infrastructure where the service provider is not completely trustworthy. To achieve confidentiality, we encrypt the data using the encryption algorithm in our prior work before uploading to the cloud, and then attach pre-classified keywords to them for ciphertext-searching, which are generated by a statistically consistent public-key encryption with keyword search (PEKS) scheme, so the service provider can use the corresponding trapdoor to identify all data containing some specific keywords without learning anything else. To ensure integrity, an elegant verification scheme is proposed, enabling a third party auditor (TPA), on behalf of data owner, to verify the integrity of the (encrypted) data stored in the cloud. The introduction of TPA eliminates the involvement of client through the auditing of whether his data stored in the cloud is indeed intact, which can be important in achieving economies of scale for cloud computing.