1. A method implemented in a computer infrastructure having computer executable code tangibly embodied on a computer readable storage medium having programming instructions operable to: receive an object from an application server; detect that an object encryption is activated for the object; inspect an annotation for the object; determine that the object or one or more attributes of the object require encryption based on the inspecting; encrypt the object or the one or more attributes of the object that require encryption based on the determining using an encryption type; and serialize and cache the object in a cache storage.