You could try using autofs, maybe? (Assuming you aren’t already either using it or using fstab).
I suggest not using a credentials file as a first pass.