discard lock for performance