Added Kryo class registration to improve encryption performance