Removed legacy mode flags that were used for testing and removed unused legacy encryption methods