Add security code in the tSparkLoad