#SB-179: Implement proxy support for the key managing facility

Non-functional commit: Polished up the code a bit.