SQL: Use more safe memory limits after introducing higher key_buffer_size