Added safe user memory access APIs