Updated key management
Signed-off-by: Izhar ul Hassan <ezhaar@gmail.com>