And also need to be watched out for multi-threaded application, which the proposed solution might have to be altered.

ssharish