PIM-2328: Get common attributes list

Need optimizations