session decryption and caching implemented..not very clean but working