Optimized get_id() stored func