Evolution of unified framework for run time optimization and security enhancement in cryptographic algorithms