A novel approach for energy- and memory-efficient data loss prevention to support Internet of Things networks