Using native method to filter out secured networks

A small optimization