Improved security while deleting notes