Engineering genetic circuits and biological memory for advanced biological security