FIX flush when secure