Add key range limit

Keys that are out of range will be deleted during compact.