Readded Support for secretDataScript (with unit tests)