Yes that sounds like a CD4E transmission. It was shared with the 4 Cyl Mazda 626 and some earlier Ford Escapes. It was not quite enough tranny for the fairly heavy 626, it didn't have a real good cooling setup either. You may want to look into an aftermarket fluid cooler if you do have it rebuilt. Google Mazda 626 CD4E if you want to read up on them.
2000 Mazda 626 ES V-6 152K Castrol SBSGB 5W30,Fram
1994 Toyota Camry LE 235K P.Master 5W30, Mann Filter
2006 Toyota Avalon 117K Castrol 5W30, OEM Filter