PROV-1070 Fix static functions and add methods for key removal
PROV-1070 Add test cases for new in-memory cache