Contact your local electrical inspector to learn what's required. You should not bury a junction box in a wall. Junction boxes, with few exceptions, must be accessible for maintenance and inspection.