Implement flash_helper to remove unwanted keys from flash. Fixes #3316t