fixed issue getting keystore for persistent storage