Remove the security framework

Here is the final patch, it should fixes the last issue: unused method was still there and unused field in a structure.