Revert "is_secure fix"

This reverts commit 6f3678ffb4a6347375ee59af48a3767f01f9760d.