Revert "static/scriptengine: use Handle instead of Persistence"

This reverts commit c23c285ff185e5c97276cb323fdf1daa935eccad.