When adding a record to a memory file, the temporary file header mutex was acquired and the buffer that holds the memory record was allocated and initialized. It was determined there is no need for the allocation and initialization to be done under control of file header mutex. The allocation and initialization of the buffer is now performed outside of the acquisition of the temporary file header mutex, reducing the time held.