Replaced final Scala with secure file