SVY-7376 fix security check functions return wrong value for in-mem
datasources