Optimized code for phone, person and location class.