Entity SP: unnecessary log write removed