Add: FDB Security and lazy writing

Merged Akshay Bharambe requested to merge lazy_security into devbranch